//
//  YTLoginIconView.m
//  YUNT
//
//  Created by haha on 2017/11/27.
//  Copyright © 2017年 梁炜东. All rights reserved.
//

#import "YTLoginIconView.h"

@implementation YTLoginIconView

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    self.backgroundImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height)];
    
    self.backgroundImage.image = [UIImage imageNamed:@"login_icon_background"];
    
    [self addSubview:self.backgroundImage];
    //25:39
    
    CGFloat x = self.bounds.size.width * 25 /79;
    
    CGFloat width = self.bounds.size.width * 31 /79;
    
    self.iconImage = [[UIImageView alloc] initWithFrame:CGRectMake(x, x, width, width)];
    
    self.iconImage.image = [UIImage imageNamed:@"login_icon"];
    
    [self addSubview:self.iconImage];
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
